<?php
    
    namespace App\Module\Api\Validator;
    use App\System\Base\Validator\BaseValidator;

    /**
     * 定义验证器类
     * @author liujun
     */
    class OrderSubmitValidator extends BaseValidator
    {
        protected $rules = [
            'q.contactsId' => 'required|integer',
            'q.goodsId' => 'required|integer',
            'q.shoppingId' => 'filled|integer',
        ];
        
        protected $messages = [

        ];

        protected $attributes = [
            'q.contactsId' => '收货地址',
            'q.goodsId' => '产品',
            'q.shoppingId' => '购物券'
        ];
    }